<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>关联产品分类</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <a lay-href="/channel/list.action">渠道管理</a>&nbsp;/&nbsp;
        <zmn th:text="${obj == null ? '':obj.name}"/>&nbsp;/&nbsp;
        <a th:text="${T(com.zmn.plat.common.dictionary.ProductDict).getBizTypeCNENName(bizType)}" th:href="|/channel/priceList.action?channelId=${channelId}&addFlag=${addFlag}&bizType=${bizType}&priceType=${priceType}|">渠道价格</a> /
        <zmn th:text="${priceType == 1 ? '销售价':'内部价'}"></zmn>&nbsp;/&nbsp;
        <a th:href="|/channel/citypriceratio/list.action?channelId=${channelId}&addFlag=${addFlag}&bizType=${bizType}&priceType=${priceType}|">渠道城市系数</a> /
        <zmn>快速设置</zmn>&nbsp;/&nbsp;
        <zmn>分类系数</zmn>
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">

            <div class="layui-card-header" style="margin-top:10px;"><b>如2级分类系数未设置，则默认使用1级分类系数；以此类推，如1级分类系数未设置，则默认使用城市默认系数。</b></div>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-tab layui-tab-brief" lay-filter="servCategoryTab">
                <ul class="layui-tab-title">
                    <th:block th:each="servCategory: ${servCategoryList}">
                        <li th:class="${servCategory.categId == servCategId ? 'layui-this':''}">
                            <a th:text="${servCategory.name}" th:href="|/channel/citypriceratio/categoryRatioBatch.action?channelId=${channelId}&bizType=${bizType}&priceType=${priceType}&cityIdStr=${cityIdStr}&servCategId=${servCategory.categId}|"></a>
                        </li>
                    </th:block>
                </ul>
                <div class="layui-tab-content">
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
            <div class="zmn-auto-table">
                <div th:replace="channel/citypriceratio/batch/_citycategoryratiotable::table"/>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        servCategId: [[${servCategId}]],
        size: [[${categOnes.size()}]],
        channelId: [[${channelId}]],
        bizType: [[${bizType}]],
        priceType: [[${priceType}]]
    };
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        channel_city_price_ratio_classify: "channel/citypriceratio/zmn.plat.channel.citypriceratio.classify",
    }).use(['index', 'channel_city_price_ratio_classify']);

</script>
</body>
</html>

<script type="text/html" id="toolbar_help">
    <div class="layui-inline" title="帮助" lay-event="CUSTOM_HELP"><i class="layui-icon layui-icon-help"></i></div>
</script>
<script type="text/html" id="help_content">
    <div>
        <label style="font-weight: bold">说明</label> <br/>
        <p>系数展示为：待生效系数/已生效系数</p>
    </div>
</script>